package pro.cherish.knowledgenotifycore.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;


@Data
@Component
@PropertySource(value = "classpath:application-notify.properties")
public class Mail {
    @Value("${cherishmall.notify.mail.enable}")
    private boolean enable;
    @Value("${cherishmall.notify.mail.host}")
    private String host;
    @Value("${cherishmall.notify.mail.username}")
    private String username;
    @Value("${cherishmall.notify.mail.password}")
    private String password;
    @Value("${cherishmall.notify.mail.sendfrom}")
    private String sendfrom;
    @Value("${cherishmall.notify.mail.sendto}")
    private String sendto;

}
